<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" class="app">
<head>  
  <meta charset="utf-8" />
  <title>商家管理－商家发布查看</title>
  <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> 
  <jsp:include page="../lbi/common.jsp"></jsp:include>
  
		<script type="text/javascript" src="<c:url value="/js/kindeditor/kindeditor.js"/>"></script>
		
		<script type="text/javascript">
		 /* editor.readonly(true); */
		 KindEditor.ready(function(K) {  
		        K.create('textarea[name="content"]', {
			        uploadJson : '<c:url value="/merchant/toFileUpload.do"/>',  
	                //fileManagerJson : '<c:url value="/merchant/toFileManager.do"/>',  
	                allowFileManager : true,  
	                allowImageUpload : true,   
			        autoHeightMode : true,
			        readonlyMode: true,
			        afterCreate : function() {this.loadPlugin('autoheight');},  
			        afterBlur : function(){ this.sync(); }  //Kindeditor下获取文本框信息  
		        });
		    });
		
	 </script>
  
</head>
<body class="">
  <section class="vbox">
    <jsp:include page="../lbi/head.jsp" ></jsp:include>
    <section>
      <section class="hbox stretch">
        <!-- .aside -->
      	  <jsp:include page="../lbi/left.jsp" ></jsp:include>
        <!-- /.aside -->
        <section id="content">
	      		  <section class="hbox stretch">
	        			  <section id="content">
	   					 <section class="hbox stretch">
	        <!--从这里开始复制粘贴-->
	        <section class="vbox">
	            <section class="scrollable wrapper w-f">
	                <section class="panel panel-default">
	                    <div class="row">
	                    		<div class="col-xs-2 inform_left">
	                    			标题
	                    		</div>
	                    		<div class="col-xs-4 inform_right">
	                    			<p>${informEntity.title }</p>
	                    		</div>
	                    </div>
	                    <div class="row">
	                    		<div class="col-xs-2 inform_left">
	                    			主图
	                    		</div>
	                    		<div class="col-xs-8 image" style="margin-bottom: 0px;">
	                    			<span class="example">
		                    			<c:if test="${informEntity.image !=null }">
	                                        <p><img src="http://qiniu.images.69mark.com/${informEntity.image }" alt=""></p>
	                                    </c:if>
	                                    
	                                    <c:if test="${informEntity.image ==null }">
	                                        <p><img src="" alt=""></p>
	                                    </c:if>
								    </span>
	                    		</div>
	                    </div>
	                    <div class="row">
	                    		<div class="col-xs-2 inform_left">
	                    			商家名
	                    		</div>
	                    		<div class="col-xs-4 inform_right">
	                    			<p>${informEntity.shopName }</p>
	                    		</div>
	                    </div>
	                    <div class="row">
	                    		<div class="col-xs-2 inform_left">
	                    			发布时间
	                    		</div>
	                    		<div class="col-xs-4 inform_right">
	                    			<p>${informEntity.createdTime }</p>
	                    		</div>
	                    </div>
	                    
	                    <div class="row">
	                    		<div class="col-xs-2 inform_left">
	                    			内容
	                    		</div>
	                    		<div class="col-xs-4 inform_right">
	                    			<textarea name="content" style="width:600px;height:400px;" readonly="readonly">${informEntity.content }</textarea>
	                    			
	                    		</div>
	                    </div>
	                    
	                </section>
	            </section>
	            <footer class="footer bg-white b-t">
	                <div class="row text-center-xs">
	                    <div class="col-md-6 hidden-sm">
	                        <a href="" onclick="javascript:history.go(-1);"><button>上一步</button></a>
	                        <button onclick="delfuncitem('${informEntity.bId}');return false;">删除</button>
	                    </div>
	                    <div class="col-md-6 col-sm-12 text-right text-center-xs">
	                       
	                    </div>
	                </div>
	            </footer>
	        </section>
	        <!--以上为内容-->
	        <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a>
	    </section>
				      </section>
	
	      		  </section>
	      	 </section>
    </section>
  </section>
  </section>

    <script>
    var _serviceURL = '/69mark/web';
		function delfuncitem(thisid){
		        layer.confirm('确定删除？',{btn:['确定','取消']},function(){
		                    $.ajax({
		                        type:'POST',
		                        url:_serviceURL+'/toDeleteWebBusinssInfo.do',
		                        data:'id='+thisid,
		                        success:function(data){
		                            if(data==1){
		                                layer.msg('删除成功',{
		                                    time: 2000,
		                                });
		                                window.location.href =_serviceURL+"/toWebSaveMerchantIndex.do"
		                            }else{
		                                layer.msg(data,{
		                                    time: 2000,
		                                });
		                            }
		                        }
		                    });
		                }
		        );
		    }
		
		$("#fabu_shop").addClass("active");
		
		$("#nav_2").css('display','block');
	</script>
  
</body>
</html>